|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | SLAVE_ADDRESS 0x48 |
| #define | RXCOUNT 0x05 |
Functions | |
| void | main (void) |
| void | USCIB0_ISR (void) |
Variables | |
| uint8_t | RXData |
| #define RXCOUNT 0x05 |
Definition at line 75 of file eusci_b_i2c_ex1_masterRxMultiple.c.
| #define SLAVE_ADDRESS 0x48 |
i2c_master_rx_multi_int
This example shows how to configure the I2C module as a master for multi-byte reception with teh help of interrupts. The address of the slave module that the master communicating with also set in this example. This example uses the interrupt driven mode to receive data.
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 69 of file eusci_b_i2c_ex1_masterRxMultiple.c.
| void main | ( | void | ) |
Definition at line 99 of file eusci_b_i2c_ex1_masterRxMultiple.c.
References __delay_cycles(), param, RXCOUNT, and SLAVE_ADDRESS.
| void USCIB0_ISR | ( | void | ) |
Definition at line 185 of file eusci_b_i2c_ex1_masterRxMultiple.c.
References __bic_SR_register_on_exit(), RXCOUNT, and RXData.
| uint8_t RXData |
Definition at line 98 of file eusci_b_i2c_ex1_masterRxMultiple.c.